﻿#ifndef SAVE_FILE_H
#define SAVE_FILE_H

#include <QObject>
#include <QFile>
#include <QDebug>
class save_file : public QObject
{
    Q_OBJECT
public:
    explicit save_file(QObject *parent = nullptr);


    void set_buf(char * res_buf, qint64 res_buf_size);
    int openfile(QString file_name);
    void writefile(char *res_buf, qint64 res_buf_size);
    void writefile(const QByteArray *data);
    void closefile(void);

private:

    QFile fd;

signals:

public slots:
};

#endif // SAVE_FILE_H
